﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using CSharp.Libs.Koc;

namespace KocHireKnight
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        Kernel KRNL = null;

        public MainWindow()
        {
            InitializeComponent();

            KRNL = new Kernel();
            kocKernel2Control1.Initialize(KRNL);
            kocHireKnightControl1.Initialize(KRNL, kocKernel2Control1.ViewModel);
            messageLoggingTextBox1.InitViewModel(KRNL.ML);

            postHandlerControl1.InitViewModel(kocHireKnightControl1.ViewModel.PH);

            KRNL.LoggingEnabled = true;
            //KRNL.LogTrafficMonitor = true;
            KRNL.LogPostHandler = true;
        }
    }
}
